﻿#ifndef HEMODIALYSISDIALOG_H
#define HEMODIALYSISDIALOG_H

#include <QDialog>
#include<QTimer>
#include<myprogressbar.h>
#include<splashprogressbar.h>
#include<roundprogressbar.h>
#include"userdata.h"
namespace Ui {
class HemodialysisDialog;
}

class HemodialysisDialog : public QDialog
{
    Q_OBJECT

public:
    explicit HemodialysisDialog(QWidget *parent = nullptr);
    ~HemodialysisDialog();
    void drawRoundProgress();
private slots:
    void on_closeButton_clicked();

    void on_checkBtn_clicked();
    void updateProgress();
    void on_cleanBtn_clicked();

    void on_connectLBtn_clicked();

    void on_connectDBtn_clicked();

    void on_openBBtn_clicked();

    void on_emergencyBtn_clicked();

    void on_DFFBtn_clicked();

    void on_startbBtn_clicked();

private:
    Ui::HemodialysisDialog *ui;
    QTimer *m_timer;
    SplashProgressBar *m_splash;
    RoundProgressBar *m_fillBar;
    RoundProgressBar *m_startBar;
};

#endif // HEMODIALYSISDIALOG_H
